package com.forest.datachangetracker.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.forest.datachangetracker.context.AuditContext;
import com.forest.datachangetracker.entity.SysAuditLog;

import java.util.Map;

public interface AuditLogService extends IService<SysAuditLog> {

    void saveAuditLog(SysAuditLog auditLog);

    void recordAuditLog(AuditContext context, Map<String, Object> oldValues, Map<String, Object> newValues, Map<String, Object> changedFields, boolean success, Object errorMessage);
}
